package com.jy.adscm.serviceProvider.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import javafx.scene.effect.Effect;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-01-24
 */
public class JyService implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 服务类型
     */
    private String serviceType;
    @TableField(exist = false)
    private String serviceTypeName;
    /**
     * 医院
     */
    private String hospital;
    @TableField(exist = false)
    private String hospitalName;
    /**
     * 科室
     */
    private String department;
    @TableField(exist = false)
    private String departmentName;
    /**
     * 服务需求日期
     */
    private Date serviceNeedTime;
    /**
     * 是否接受其他经销商服务
     */
    private String isAcceptOthersService;
    /**
     * 需求描述
     */
    private String needServiceDesc;
    /**
     * 申请人
     */
    private String applicant;
    @TableField(exist = false)
    private String applicantName;
    /**
     * 申请时间
     */
    private Date applicantTime;
    /**
     * 经销商
     */
    private String dealer;
    @TableField(exist = false)
    private String dealerName;
    /**
     * 申请状态
     */
    private Integer serviceState;
    @TableField(exist = false)
    private String serviceStateName;
    /**
     * 审核人
     */
    private String approver;
    @TableField(exist = false)
    private String approverName;
    private Date approveTime;
    /**
     * 确认服务时间
     */
    private Date sureServiceTime;
    /**
     * 审核结果
     */
    private String approveResult;
    /**
     * 审批意见
     */
    private String approveRemark;
    /**
     * 最终服务单位
     */
    private String lastServiceDept;
    @TableField(exist = false)
    private String lastServiceDeptName;
    /**
     * 服务人
     */
    private String servicer;
    /**
     * 服务人联系方式
     */
    private String servicerPhone;
    /**
     * 服务评价
     */
    private String serviceEvaluation;

    public String getServiceStateName() {
        return serviceStateName;
    }

    public void setServiceStateName(String serviceStateName) {
        this.serviceStateName = serviceStateName;
    }

    public String getServiceTypeName() {
        return serviceTypeName;
    }

    public void setServiceTypeName(String serviceTypeName) {
        this.serviceTypeName = serviceTypeName;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getApplicantName() {
        return applicantName;
    }

    public void setApplicantName(String applicantName) {
        this.applicantName = applicantName;
    }

    public String getDealerName() {
        return dealerName;
    }

    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }

    public String getApproverName() {
        return approverName;
    }

    public void setApproverName(String approverName) {
        this.approverName = approverName;
    }

    public String getLastServiceDeptName() {
        return lastServiceDeptName;
    }

    public void setLastServiceDeptName(String lastServiceDeptName) {
        this.lastServiceDeptName = lastServiceDeptName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getServiceNeedTime() {
        return serviceNeedTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setServiceNeedTime(Date serviceNeedTime) {
        this.serviceNeedTime = serviceNeedTime;
    }

    public String getIsAcceptOthersService() {
        return isAcceptOthersService;
    }

    public void setIsAcceptOthersService(String isAcceptOthersService) {
        this.isAcceptOthersService = isAcceptOthersService;
    }

    public String getNeedServiceDesc() {
        return needServiceDesc;
    }

    public void setNeedServiceDesc(String needServiceDesc) {
        this.needServiceDesc = needServiceDesc;
    }

    public String getApplicant() {
        return applicant;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getApplicantTime() {
        return applicantTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setApplicantTime(Date applicantTime) {
        this.applicantTime = applicantTime;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }

    public Integer getServiceState() {
        return serviceState;
    }

    public void setServiceState(Integer serviceState) {
        this.serviceState = serviceState;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getApproveTime() {
        return approveTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getSureServiceTime() {
        return sureServiceTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setSureServiceTime(Date sureServiceTime) {
        this.sureServiceTime = sureServiceTime;
    }

    public String getApproveResult() {
        return approveResult;
    }

    public void setApproveResult(String approveResult) {
        this.approveResult = approveResult;
    }

    public String getApproveRemark() {
        return approveRemark;
    }

    public void setApproveRemark(String approveRemark) {
        this.approveRemark = approveRemark;
    }

    public String getLastServiceDept() {
        return lastServiceDept;
    }

    public void setLastServiceDept(String lastServiceDept) {
        this.lastServiceDept = lastServiceDept;
    }

    public String getServicer() {
        return servicer;
    }

    public void setServicer(String servicer) {
        this.servicer = servicer;
    }

    public String getServicerPhone() {
        return servicerPhone;
    }

    public void setServicerPhone(String servicerPhone) {
        this.servicerPhone = servicerPhone;
    }

    public String getServiceEvaluation() {
        return serviceEvaluation;
    }

    public void setServiceEvaluation(String serviceEvaluation) {
        this.serviceEvaluation = serviceEvaluation;
    }

    @Override
    public String toString() {
        return "JyService{" +
        "id=" + id +
        ", serviceType=" + serviceType +
        ", hospital=" + hospital +
        ", department=" + department +
        ", serviceNeedTime=" + serviceNeedTime +
        ", isAcceptOthersService=" + isAcceptOthersService +
        ", needServiceDesc=" + needServiceDesc +
        ", applicant=" + applicant +
        ", applicantTime=" + applicantTime +
        ", dealer=" + dealer +
        ", serviceState=" + serviceState +
        ", approver=" + approver +
        ", approveTime=" + approveTime +
        ", sureServiceTime=" + sureServiceTime +
        ", approveResult=" + approveResult +
        ", approveRemark=" + approveRemark +
        ", lastServiceDept=" + lastServiceDept +
        ", servicer=" + servicer +
        ", servicerPhone=" + servicerPhone +
        ", serviceEvaluation=" + serviceEvaluation +
        "}";
    }
}
